package com.hotel.services;
import com.github.pagehelper.PageInfo;
import com.hotel.entitys.Staff;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface StaffService {
    //获取所有员工信息
    public PageInfo<Staff> getAllStaff(Integer currentPage, Integer pageSize, String key);
    //登录 通过Staff的电话和密码
    public Staff getStaffByNameAndPwd(String Staff_telephone, String Staff_password);
    //增加员工
    public int addStaff(Staff staff);
    //获取单一员工
    public Staff getStaffById(Integer staff_id);

    public int changeStaff(Staff staff);

    public int deleteOne(Integer staff_id);

    public int deleteMulti(Object[] ids);

    public int selStaffByTel(String telephone);

    public List<Staff> selAllFix();

    public int updateLogin(Staff staff);
}
